home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / xulrunner-1.9.1.postinst < prev    next >
Text File  |  2009-11-09  |  559b  |  23 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. XUL_VERSION=1.9.1
  5. GRE_VERSION=`/usr/bin/xulrunner-$XUL_VERSION --gre-version`
  6.  
  7. if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
  8.         /usr/sbin/update-alternatives --install /usr/bin/xulrunner \
  9.                 xulrunner /usr/bin/xulrunner-$XUL_VERSION 50
  10.     if test -e /usr/lib/xulrunner-$GRE_VERSION/.autoreg; then
  11.         touch /usr/lib/xulrunner-$GRE_VERSION/.autoreg
  12.     fi
  13.  
  14.     # Remove possible left-over
  15.     if [ -f /etc/ld.so.conf.d/xulrunner-$XUL_VERSION ] ; then
  16.         rm -f /etc/ld.so.conf.d/xulrunner-$XUL_VERSION
  17.     fi
  18.  
  19.     ldconfig
  20. fi
  21.  
  22.  
  23.